import request from "../api";

export function getInfo(param) {
	return request({
		url: "/station/info",
		method: "get",
		params: param,
	});
}
export function runningState(param) {
	return request({
		url: "/station/runningState",
		method: "get",
		params: param,
	});
}
export function getPcsWaring(param) {
	return request({
		url: "/station/PcsWaring",
		method: "get",
		params: param,
	});
}
export function batteryStackWaring(param) {
	return request({
		url: "/station/batteryStackWaring",
		method: "get",
		params: param,
	});
}
export function boxWarning(param) {
	return request({
		url: "/station/boxWarning",
		method: "get",
		params: param,
	});
}

export function operationData(param) {
	return request({
		url: "/battery/operationData",
		method: "get",
		params: param,
	});
}

export function storageUnitRun(param) {
	return request({
		url: "/battery/storageUnitRun",
		method: "get",
		params: param,
	});
}
export function storageUnitRun1(param) {
	return request({
		url: "/battery/storageUnitRunInfo",
		method: "get",
		params: param,
	});
}

export const pcsRealtime = (param) => {
	return API.GET("/station/pcsRealtime", param);
};

export const boxRealtime = (param) => {
	return API.GET("/station/boxRealtime", param);
};
//
export const plieRealtime = (param) => {
	return API.GET("/station/plieRealtime", param);
};
export const scoInfo = (param) => {
	return API.GET("/battery/scoInfo", param);
};
// 一起测  堆内所有遥测
export function ycList(param) {
	return request({
		url: "/common/yc",
		method: "get",
		params: param,
	});
}
export function ycInfo(param) {
	return request({
		url: "/common/ycInfo",
		method: "get",
		params: param,
	});
}
// 实时告警
export function realtimeInfo(param) {
	return request({
		url: "/alarm/realtimeInfo",
		method: "get",
		params: param,
	});
}
export function historyAlarmeXport(param) {
	return request({
		url: "/alarm/historyAlarmeXport",
		method: "get",
		params: param,
	});
}

// 电池堆曲线
export const rackSoc = (param) => {
	return API.GET("/battery/rackSoc", param);
};
// 故障报警信息

export function faultAlarmInfo(param) {
	return request({
		url: "/alarm/faultAlarmInfo",
		method: "get",
		params: param,
	});
}

export function alarmInformation(param) {
	return request({
		url: "/alarm/information",
		method: "get",
		params: param,
	});
}
//今日告警分类数量统计
export function equipmentTodayCount(param) {
	return request({
		url: "/alarm/equipmentTodayCount",
		method: "get",
		params: param,
	});
}
//今日告警分类数量统计
export function rankTodayCount(param) {
	return request({
		url: "/alarm/rankTodayCount",
		method: "get",
		params: param,
	});
}
export function reportTodayCount(param) {
	return request({
		url: "/alarm/reportTodayCount",
		method: "get",
		params: param,
	});
}
//soc曲线
export function childGraph(param) {
	return request({
		url: "/common/childGraph",
		method: "get",
		params: param,
	});
}
//间隔近7日充放电量
export function childThe7thData(param) {
	return request({
		url: "/common/childThe7thData",
		method: "get",
		params: param,
	});
}
//运行状态
export function findUnitData(param) {
	return request({
		url: "/common/findUnitData",
		method: "get",
		params: param,
	});
}

export function ycInfoFromTime(param) {
	return request({
		url: "/common/dataGraph",
		method: "get",
		params: param,
	});
}